package ru.jexp.rcp.supply.beans.zs;

import org.eclipse.jface.action.Action;

import ru.jexp.rcp.supply.beans.zs.wizard.WizardPageChooseEkPresenter;
import ru.jexp.rcp.supply.mui.JExpSupplyMessages;

public class ActionCheckAll extends Action {
	
	private WizardPageChooseEkPresenter presenter;

	public ActionCheckAll(WizardPageChooseEkPresenter presenter)
	{
		this.presenter = presenter;
		setText(JExpSupplyMessages.Global_button_checkall);
	}
	
	@Override
	public void run() {
		presenter.getEkCheckHelper().checkAll();
		presenter.getView().getViewer().refresh();
	}
}
